from django.contrib import admin
from reviews.models import Dish, Place, Review, DishImage
from tagging.models import Tag, Tag_Relation

class ImageAdmin(admin.ModelAdmin):
    list_display = ('name', 'admin_thumbnail_view',)

class PlaceAdmin(admin.ModelAdmin):
    exclude = ('modified_date', 'created_date')

class DishAdmin(admin.ModelAdmin):
    exclude = ('modified_date', 'created_date')


admin.site.register(Tag)
admin.site.register(Tag_Relation)
admin.site.register(Dish)
admin.site.register(Place)
admin.site.register(Review)
admin.site.register(DishImage, ImageAdmin)

